from rest_framework.viewsets import ModelViewSet
from goods.models import SPUSpecification
from . import spec_serializer
from meiduo_mall_admin.my_paginate import MyPageNumberPagination


# spu规格表获取
class SpecViewSet(ModelViewSet):
    pagination_class = MyPageNumberPagination
    serializer_class = spec_serializer.SpecViewSerializer
    queryset = SPUSpecification.objects.all()


